package com.atguigu.day21.teat07;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Scanner;

/**
 * @author fenge
 */
public class Test07 {
    public static void main(String[] args) throws IOException {
        Scanner s = new Scanner(System.in);
        File f =new File("words.txt");
        if (!f.exists())
            f.createNewFile();
        System.setOut(new PrintStream(f));
        System.out.println(s.next());
        System.out.println(s.next());
        System.out.println(s.next());
    }
}
